import request from "@/utils/request";

// 获取 - 我的订单 - 数据
export function getAllOrderData(params = {}) {
  return request({
    url: "/order/list",
    method: "get",
    params: { ...params }
  });
}

// 发送 - 删除订单 - 数据
export function postDeleteOrderData(data) {
  return request({
    url: "/order/deleteOrder",
    method: "post",
    data: data
  });
}

// 发送 - 取消订单 - 数据
export function postCancelOrderData(data) {
  return request({
    url: "/order/cancelUserOrder",
    method: "post",
    data: data
  });
}